package xyz.csmcool.imchat.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 什锦
 * @Package xyz.csmcool.imchat.entity.vo
 * @since 2022/8/19 19:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoomChatsVo {

    private Integer id;
    private Integer senderId;
    private Integer type;
    private String message;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    private String userName;
    private String avatar;
}
